package com.thirteen.app.service;

import com.thirteen.app.dto.CreatePaperResponse.CollegeDto;
import com.thirteen.app.entity.College;

import java.util.List;
import java.util.Map;

public interface CollegeService {

    List<CollegeDto> queryAllCollege();

    College queryById(Integer collegeid);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    Map<String, Object> queryAllByLimit(int offset, int limit);


    boolean insert(College college);


    boolean update(College college);

    boolean deleteById(Integer collegeid);

    Integer getCollegeCount();

    List<College> queryAll();


}
